<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MAN旗舰店</title>
    <link rel="stylesheet" href="css/style.css">
    <style>
        /* 添加的内联CSS样式 */
        .slides {
            display: flex;
            overflow: hidden;
            justify-content: center;
            max-height: 300px;
        }
        .slides img {
            width: 100%;
            max-width: 1200px;
            height: auto;
            object-fit: cover;
            border-radius: 8px;
        }
        .category-list {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            gap: 20px;
            padding: 20px 0;
        }
        .category-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 150px;
            text-align: center;
        }
        .category-item img {
            width: 120px;
            height: 120px;
            object-fit: cover;
            border-radius: 50%;
            border: 2px solid #f0f0f0;
            transition: transform 0.3s ease;
        }
        .category-item:hover img {
            transform: scale(1.1);
            border-color: #ff6600;
        }
        .category-item p {
            margin-top: 10px;
            font-weight: bold;
            color: #333;
        }
        .product-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 25px;
            padding: 20px;
        }
        .product-item img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }
        .product-item:hover img {
            transform: translateY(-5px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }
    </style>
</head>
<body>
    <!-- 顶部导航栏保持不变 -->
    <header class="header">
        <div class="container">
            <div class="logo">MAN旗舰店</div>
            <div class="search-box">
                <input type="text" placeholder="搜索商品..." id="searchInput">
                <button id="searchBtn">搜索</button>
            </div>
            <nav class="nav">
                <a href="user/profile.html">个人中心</a>
                <a href="cart.html">购物车(<span id="cartCount">0</span>)</a>
                <a href="login.html" id="authLink">登录/注册</a>
            </nav>
        </div>
    </header>

    <!-- 轮播图 -->
    <section class="slider">
        <div class="slides">
            <img src="images/banner1.png" alt="促销活动1">
        </div>
    </section>

    <!-- 商品分类 -->
    <section class="categories">
        <h2>商品分类</h2>
        <div class="category-list">
            <div class="category-item" data-category="electronics">
                <img src="images/category1.jpg" alt="电子产品">
                <p>电子产品</p>
            </div>
            <div class="category-item" data-category="clothing">
                <img src="images/category2.jpg" alt="服装服饰">
                <p>服装服饰</p>
            </div>
            <div class="category-item" data-category="books">
                <img src="images/category3.jpg" alt="图书音像">
                <p>图书音像</p>
            </div>
            <div class="category-item" data-category="home">
                <img src="images/category4.jpg" alt="家居生活">
                <p>家居生活</p>
            </div>
            <div class="category-item" data-category="food">
                <img src="images/category5.jpg" alt="食品生鲜">
                <p>食品生鲜</p>
            </div>
        </div>
    </section>

    <!-- 商品展示 -->
    <section class="products">
        <h2>热门商品</h2>
        <div class="product-list" id="productList">
            <!-- 示例商品项 - 实际应由JavaScript动态生成 -->
            <div class="product-item">
                <img src="images/product1.jpg" alt="商品1">
                <h3>商品名称</h3>
                <p>¥99.00</p>
            </div>
            <div class="product-item">
                <img src="images/product2.jpg" alt="商品2">
                <h3>商品名称</h3>
                <p>¥129.00</p>
            </div>
            <!-- 更多商品... -->
        </div>
    </section>

    <footer class="footer">
        <p>© 2025 MAN旗舰店 - number：23215220315 name：余诗镘</p>
    </footer>

    <script src="js/utils.js"></script>
    <script src="js/main.js"></script>
</body>
</html>